//
//  DialogViewController.swift
//  test-ios
//
//  Created by wyz5204 on 2023/4/14.
//

import UIKit

class DialogViewController: MVVMBaseViewController<DialogViewModel> {
    
    
    private lazy var showDialog = {
        return UIButton().then { view in
            view.setTitle("显示Dialog", for: UIControl.State.normal)
            view.setTitleColor(.black, for: UIControl.State.normal)
        }
    }()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        showDialog.addTo(self.view) { view in
            view.snp.makeConstraints { make in
                make.center.equalToSuperview()
            }
        }
        showDialog.rx.tap.asDriver().drive(onNext: {element in
            // 显示
            AEAlertView.show(title: "title", message: "fastest", actions: ["ok"]) { action in
                print("dismiss----Fastest")
            }
        })
        .disposed(by: rx.disposeBag)
        
    }
    
}
class DialogViewModel : MVVMBaseViewModel{
    
}
